package vn.edu.saigontech.ncms.model.program;

public enum ProgramType {
	
	PRE_CHILDREN("programType.preChildren"), 
	CHILDREN("programType.children"),
	TEENAGER("programType.teenager"),
	GE("programType.generalEnglish"),
	OTHER("programType.generalEnglish");
	
	private String key;
	
	private ProgramType(String key) {
		this.key = key;
	}
	
	public static ProgramType create(String name) {
		try {
			return valueOf(name);
		}
		catch(Exception ex) {}
		return null;
	}
	
	public String getKey() {
		return key;
	}
}